﻿
 
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		
		<title>jb-aptech毕业设计项目</TITLE>
<meta name="renderer" content="ie-comp">
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<link href="../../css/style.css" rel="stylesheet" type="text/css">
		<script src="../../script/common.js"></script>
		<script src="../../script/validate.js"></script>
		<script src="../../js/vue.js"></script>
		<script src="../../js/jquery/jquery-1.5.2.min.js"></script>
	</head>
	<body>
	<div id="app">


		<div class="page_title">
			权限管理 > 权限管理 > 添加权限
		</div>
		<form name="sysRightForm" method="post" action="/CRM/sysRight.do">
			<div class="button_bar">
				<a class="common_button" onClick="help('');" >
					帮助
				</a>
				<a class="common_button" href="add.html">
					添加
				</a>
				<a class="common_button" href="list.html" type="button">
					返回
				</a>
				
			</div>
			<table class="query_form_table" v-for="s in sum">
				<tr>
					<th>
						编号
					</th>
					<td v-text="s.right_code">
						L01
					</td>
					<th>
						权限类型
					</th>
					<td v-text="s.right_icon">
						Folder
					</td>
					<th>
						权限文本
					</th>
					<td v-text="s.right_text">
						营销管理
					</td>
				</tr>
				<tr>

					<th>
						权限URL
					</th>
					<td v-text="s.right_url">
						 
					</td>
					<th>权限描述</th>
					<td v-text="s.right_tip">
						营销管理
					</td>
				</tr>
			</table>
		</form>
	</div>
	</body>
	<script>
		const  app=new Vue({
			el:"#app",
			data:{
				sum:[],
				sums:{
					right_code:"",
				},
			},methods: {
				load() {
					$.getJSON("/SysMight/queryPage", this.sums, json => {
						this.pageInfo = json.data.pageInfo;
						this.sum = json.data.pageInfo.list;
					});
				}
			},mounted(){
				let ser=new URLSearchParams(location.search).get("right_code");
				this.sums.right_code=ser;

				this.load();
			}
		});
	</script>
</html>
